<template>
  <!--模板-->
  <el-input v-model="model[key1]" placeholder=""></el-input>
</template>


<script setup lang="ts" generic="T extends {[key: string]: any}, K extends keyof T">
  import { reactive } from 'vue'
  const [model, modifiers] = defineModel<T>()
  
  const key1: K = Object.keys(modifiers)[0] as K

</script>